//ThorClient 802.1x (using WinPcap 3.2 alpha1)
//Download: http://thorqq.ys168.com 
//E-mail:   thorqq@163.com 
//Author:   Thorqq
/////////////////////////////////////////////////////////////

#ifndef _DATAFILE_H
#define _DATAFILE_H

#include "global.h"

class CDataFile  
{
public:
	CDataFile(PUSERDATA pUserData);
	virtual ~CDataFile();

	bool Load();
	bool Save();
//	bool AutoLogin() const { return m_Login; }

private:
	PUSERDATA pData;
	bool m_Login;
	HANDLE m_hFile;

private:
	void Init();
	void Encode();
	void Decode();
	bool GetGlobalData();
};

#endif